<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<head>
<title>代购详情</title>

<link href="css/detailSaleGoods.css" rel="stylesheet" type="text/css" />

<script src="js/jquery-3.1.0.min.js"></script>

<script src="js/addSaleOrder.js"></script>

</head>
<body>
</head>
<body>
	<div id="main">
		<div class="show">
			<div class="box">
			   <input type="hidden" value="${good.goodId}" id="gid" />
				<table border="0">
					<tr>
						<td style="width:25%;padding-left:20px"><img src="uImg/${good.detailUser.userId}.jpg" width="60%" height="100px" />
						</td>
						<td
							style="padding-top:20px;padding-bottom:10px;vertical-align: top;">
							<span style="font-weight:bold;font-size:24px;">${good.goodName }</span><br>
							<span style="padding-left:85%;color:gray;font-size:24px;font-weight:bold;transform:rotate(45deg)">
									代购信息</span>
						    <br />
							<br /> <br />
							<p style="font-size:18px">
								类型： ${style} &nbsp;&nbsp;&nbsp;
								数量： ${good.count} 
							<span style="padding-left:25%;color:crimson;font-size:24px;font-weight:bold">
									出价： ${good.price} RMB</span>
							</p></td>
					</tr>
					<tr>
						<td style="vertical-align:top;text-align:left;padding-top:10px;padding-left:20px">
						<span style="color:black;text-align:center">帖主： ${good.detailUser.nickName}</span><br/><br/><br/>
							<span>信誉度：${good.detailUser.credit}</span><br/><br/>
							<span>个性签名：<br/>
							&nbsp;&nbsp;&nbsp;&nbsp;${good.detailUser.signature}</span><br/><br/><br/>
							<span>电话：${good.detailUser.telephone}</span><br/><br/><br/>
							<input type="hidden" value="${good.detailUser.userId}" id="uid"/>
							<input type="hidden" value="${good.detailUser.nickName}" id="uname"/>
							<a href="#" id="msg" style="width:64px;margin-left:0px">联系贴主</a>
						  <a onclick="addFriend(&apos;${good.detailUser.userId}&apos;)" style="width:64px;margin-left:20px">加为好友</a>
						
						<td
							style="height:320px;padding-left:30px;vertical-align:top;padding-right:20px;padding-top:20px;border:1px solid lightgrey;background-color: blanchedalmond;;">
							<img src="uImg/${good.goodId}.jpg" width="40%" height="80%"/><div class="detail">详情：<p style="text-indent:2em"> ${good.briefing}</p></div></td>
					</tr>
					<tr>
						<td></td>
						<td style="text-align:center;height:80px"><a onclick="buyGood()">我 来
								买</a> <a href="javascript:history.back(-1)">返回上一页</a>
						</td>
					</tr>

				</table>
				</div>
			</div>
			
			 <div class="good">  
			    <h3>填写订单</h3>            
                <form action="" id="mss" >
                  <table>
                      <tr><td  style="width:20%;padding-left:30px;">物&nbsp;&nbsp;&nbsp;&nbsp;品&nbsp;&nbsp;&nbsp;名:</td> <td style="padding-left:30px;">${good.goodName}</td></tr>
                       <tr><td style="width:20%;padding-left:30px;">数&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;量:</td>
                       <td  style="vertical-align:top;">
						   <a id="de"><img src="img/de.png" width="30px" height="30px" style="border-radius:15px;padding:2px 2px 2px 2px;border:1px solid lightgrey;margin-left:30px;margin-right:10px"></a>
						   <span style="font-size:22px;margin-bottom:15px;" id="count">0</span>
						   <a id="ad"><img src="img/ad.png" width="30px" height="30px" style="border-radius:15px;padding:2px 2px 2px 2px;border:1px solid lightgrey;margin-left:10px;margin-right:20px"></a>
						   <span id="ms5" amount="${good.count}" >库存 为${good.count}件</span>
					   </td></tr>
                       <tr><td style="width:20%;padding-left:30px;">价&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;格:</td><td style="padding-left:30px;">${good.price} RMB</td></tr>
                       <tr><td style="width:20%;padding-left:30px;">订  单  状  态:</td><td style="padding-left:30px;">待付款</td></tr>
                       <tr><td style="width:20%;padding-left:30px;">电  话  号  码:</td><td style="padding-left:30px;"><input type="text" name="order.telephone" id="tel"><span id="ms1"></span></td></tr>
                       <tr><td style="width:20%;padding-left:30px;">收  货  地  址:</td><td style="padding-left:30px;"><input type="text" name="order.address" id="address"><span id="ms2"></span></td></tr>    
                  </table>
                       <div id="btn">
                       <input type="button" onclick="cannel()" value="取     消"/>
                       <input type="button" id="send" value="提     交"/>
                       </div>
                   </form>
             </div>		
             
              <div class="content">
           <div class="chat01_title">
           </div>
            <a class="close_btn" href="#"></a>
           <div class="chat01_content">
           </div>
           <div class="chat02_title">
           </div>
           <div class="chat02_content">
               <textarea id="textarea"></textarea>
           </div>
           <div class="chat02_bar">
                   <div id="send1" style="right: 5px; top: 5px;">
                       <img src="img/send_btn.jpg">
                    </div>
           </div>
      </div>	
             	
	</div>
	
	
</body>
</html>